package com.mypro.common.user;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tbl_user"
    ,catalog="mypro"
)

public class User  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String username;
     private String password;
     private String email;
     private String nameCh;
     private String sex;
     private Integer age;
     private String tel;
     private String qq;
     private String address;
     private String functions;
     private Boolean valid;
     private Timestamp createTime;
     private Integer createorId;
     private Timestamp lastLoginTime;


    // Constructors

    /** default constructor */
    public User() {
    }

	/** minimal constructor */
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
    
    /** full constructor */
    public User(String username, String password, String email, String nameCh, String sex, Integer age, String tel, String qq, String address, String functions, Boolean valid, Timestamp createTime, Integer createorId, Timestamp lastLoginTime) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.nameCh = nameCh;
        this.sex = sex;
        this.age = age;
        this.tel = tel;
        this.qq = qq;
        this.address = address;
        this.functions = functions;
        this.valid = valid;
        this.createTime = createTime;
        this.createorId = createorId;
        this.lastLoginTime = lastLoginTime;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="ID_", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="USERNAME_", nullable=false, length=15)

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Column(name="PASSWORD_", nullable=false, length=20)

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Column(name="EMAIL_", length=30)

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Column(name="NAME_CH_", length=20)

    public String getNameCh() {
        return this.nameCh;
    }
    
    public void setNameCh(String nameCh) {
        this.nameCh = nameCh;
    }
    
    @Column(name="SEX_", length=1)

    public String getSex() {
        return this.sex;
    }
    
    public void setSex(String sex) {
        this.sex = sex;
    }
    
    @Column(name="AGE_")

    public Integer getAge() {
        return this.age;
    }
    
    public void setAge(Integer age) {
        this.age = age;
    }
    
    @Column(name="TEL_", length=15)

    public String getTel() {
        return this.tel;
    }
    
    public void setTel(String tel) {
        this.tel = tel;
    }
    
    @Column(name="QQ_", length=11)

    public String getQq() {
        return this.qq;
    }
    
    public void setQq(String qq) {
        this.qq = qq;
    }
    
    @Column(name="ADDRESS", length=100)

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    @Column(name="FUNCTIONS_", length=200)

    public String getFunctions() {
        return this.functions;
    }
    
    public void setFunctions(String functions) {
        this.functions = functions;
    }
    
    @Column(name="VALID_")

    public Boolean getValid() {
        return this.valid;
    }
    
    public void setValid(Boolean valid) {
        this.valid = valid;
    }
    
    @Column(name="CREATE_TIME_", length=0)

    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    
    @Column(name="CREATEOR_ID")

    public Integer getCreateorId() {
        return this.createorId;
    }
    
    public void setCreateorId(Integer createorId) {
        this.createorId = createorId;
    }
    
    @Column(name="LAST_LOGIN_TIME_", length=0)

    public Timestamp getLastLoginTime() {
        return this.lastLoginTime;
    }
    
    public void setLastLoginTime(Timestamp lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
   








}